// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-4-29

#ifndef __STRCRYPT_H_COMMON_GUARD__
#define __STRCRYPT_H_COMMON_GUARD__

#pragma once

namespace JoyGuard
{

//##ModelId=44C4B60D0282
class StrCrypt
{
public:
	//##ModelId=44C4B60D0283
    static void EncryptData(void* dst, const void* src, size_t len);
	//##ModelId=44C4B60D0292
    static void DecryptData(void* dst, const void* src, size_t len);
	//##ModelId=44C4B60D0297
    static void Encrypt(char* dst, const char* src, size_t len = size_t(-1));
	//##ModelId=44C4B60D02A2
    static void Decrypt(char* dst, const char* src, size_t len = size_t(-1));
	//##ModelId=44C4B60D02A7
    static void Encrypt(wchar_t* dst, const wchar_t* src, size_t len = size_t(-1));
	//##ModelId=44C4B60D02B2
    static void Decrypt(wchar_t* dst, const wchar_t* src, size_t len = size_t(-1));
};

} // namespace JoyGuard

#endif  // __STRCRYPT_H_COMMON_GUARD__
